﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace ServiceDeskInterop
{
    public class ModelException : FaultException<ModelFault>
    {
        public ModelException(string str)
            : base( new ModelFault(str))
        {
            ModelReason = str;
        }
        public const string WrongCredentials = "WrongCredentials";
        public const string UserNotExist = "UserNotExist";
        public const string TaskNotExist = "TaskNotExist";

        public string ModelReason { get; private set; }
    }
}
